package ${vopackage};

import java.util.List;
import java.util.ArrayList;

public class TreeVo {

    public TreeVo() {
    }

    public TreeVo(int id, String text, int pid) {
        this.id = id;
        this.text = text;
        this.pid = pid;
    }

    private int id;

    private String text;

    private int pid;

    private List<TreeVo> children = new ArrayList<>();

    private String state = "open";

    private boolean checked;


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public List<TreeVo> getChildren() {
        return children;
    }

    public void setChildren(List<TreeVo> children) {
        this.children = children;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

}